﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace DynamicDNS.Wcf
{
    [ServiceContract]
    public interface IConfigurationService
    {
        [OperationContract]
        Model.StartType GetStartType();

        [OperationContract]
        Model.StartType SetStartType(Model.StartType starttype);

        [OperationContract]
        List<Model.Record> GetRecords();

        [OperationContract]
        List<Model.Record> SetRecord(Model.Record record);

        [OperationContract]
        List<Model.Record> DeleteRecord(Model.Record record);

        [OperationContract]
        List<Model.Record> UpdateRecord(Model.Record record);

        [OperationContract]
        List<Model.Record> UpdateAll(bool force);
    }
}
